<?php
/**
 * Created by PhpStorm.
 * User: admin
 * Date: 2021.3.10
 * Time: 20:08
 */

require __DIR__.'/../vendor/autoload.php';

$container = new \Illuminate\Container\Container();
class Log {
    public $name;
    public $xu;
    public function __construct(Name $name,XU $xu )
    {
        $this->name = $name;
        $this->xu = $xu;
    }
}

class Name {
//    protected $xu;
//    public function __construct($xu)
//    {
//        $this->xu = $xu;
//    }
}

class XU {

}




$res = $container->make(Log::class);
print_r($res->name);
print_r($res->xu);